﻿using Autofac;
using Microsoft.SqlServer.Server;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace Reborn.MicroKernel
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            ContainerBuilder containerBuilder = new ContainerBuilder();
            string path = System.AppDomain.CurrentDomain.BaseDirectory;

            Config config = new Config();
            config.PluginDirectory = new string[] { path + @"bin\plugins", path + @"plugins" };
            config.containerBuilder = containerBuilder;
            config.RegisterAssembly = new System.Reflection.Assembly[] { typeof(Program).Assembly };

            MicroKernelAPP aPP = new MicroKernelAPP(config);
            aPP.Start();
        }
    }

    public class TtL : Interface.ICofing
    {
        public void Handle()
        {
            throw new NotImplementedException();
        }

        public int Priority()
        {
            return 10;
        }
    }

    public class TtL2 : Interface.ICofing
    {
        public void Handle()
        {
            throw new NotImplementedException();
        }

        public int Priority()
        {
            return 10;
        }
    }

    public class TtL3 : Interface.IBootstrap
    {
        public void Handle()
        {
            throw new NotImplementedException();
        }

        public int Priority()
        {
            return 10;
        }
    }
}
